package com.lzc.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 好友类
 */
@Setter
@Getter
@ToString
@TableName("friends")
public class Friend {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("user_id")
    private Long userId;

    @TableField("friend_id")
    private Long friendId;

    public Friend(){

    }

    public Friend(Long userId,Long friendId){
        this.userId = userId;
        this.friendId = friendId;
    }
}
